package com.ruoyi.project.shop.service.impl;


import com.ruoyi.project.shop.dao.ShopUserDao;
import com.ruoyi.project.shop.domain.ShopUserDO;
import com.ruoyi.project.shop.service.ShopUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ShopUserServiceImpl implements ShopUserService {
	@Autowired
	private ShopUserDao shopUserDao;
	
	@Override
	public ShopUserDO get(Long suserId){
		return shopUserDao.get(suserId);
	}
	
	@Override
	public List<ShopUserDO> list(Map<String, Object> map){
		return shopUserDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return shopUserDao.count(map);
	}
	
	@Override
	public int save(ShopUserDO shopUser){
		return shopUserDao.save(shopUser);
	}
	
	@Override
	public int update(ShopUserDO shopUser){
		return shopUserDao.update(shopUser);
	}
	
	@Override
	public int remove(Long suserId){
		return shopUserDao.remove(suserId);
	}
	
	@Override
	public int batchRemove(Long[] suserIds){
		return shopUserDao.batchRemove(suserIds);
	}

    @Override
    public List<ShopUserDO> likeList(Map<String, Object> map){
        return shopUserDao.likeList(map);
    }
    @Override
    public int likeListCount(Map<String, Object> map){
        return shopUserDao.likeListCount(map);
    }

    @Override
    public ShopUserDO getShopAdminByShopId(String id) {

		return shopUserDao.getShopAdminByShopId(id);
    }

}
